// 获取类
const form = document.getElementById('form');
const username = document.getElementById('username');
const email = document.getElementById('email');
const password = document.getElementById('password');
const password2 = document.getElementById('password2');

// 显示输入错误消息
function showError(input,message) {
    const formContorl = input.parentElement;
    formContorl.calssName = 'form-control error'
    const samll = formContorl.querySelector('small');
    samll.innerText = message;
}

// 显示成功
function showSuccess(input) {
    const formContorl = input.parentElement;
    formContorl.calssName = 'form-contorl success'
}

// 检查电子邮件是否有效
function checkRequired(inputArr) {
    
}